from rest_framework import routers
from .views import DepartmentViewSet,PositionViewSet,RoleViewSet


router = routers.SimpleRouter()
# 显式指定唯一的 basename
router.register("department", DepartmentViewSet, basename="department")  # 部门
router.register("position", PositionViewSet, basename="position")        # 职位
router.register("role", RoleViewSet, basename="role")                    # 角色

urlpatterns = router.urls
